<template>
	<view>
		<swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000" style="height: 420rpx;">
			<swiper-item v-for="(item,index) in [1,2,3,4,5]">
				<view class="swiper-item">
					<image src="../../static/image/4.jpg" style="width: 100%;" mode="aspectFill"></image>
				</view>
			</swiper-item>
		</swiper>
		<view style="padding: 20rpx 40rpx;line-height: 70rpx;">
			<text>环保单肩包</text><br />
			<text style="color: #ffb155;">{{points}}积分</text>
			<view class="title">
				<view class="dd"></view>
				<text>服务详情</text>
			</view>
			<text>
				服务：买一赠一<br />
				详情：心潮时尚
			</text>
			<view class="title">
				<view class="dd"></view>
				<text>商品详情</text>
			</view>
			<image src="../../static/image/4.jpg" style="width: 100%;" mode="aspectFill" v-for="item in [1,2,3,4]">
			</image>
			<button @click="toexchange" type="primary"
				style="position: fixed;bottom: 60rpx;width: 600rpx;left: 75rpx;background-color: #00c297;">兑换</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				points: 1300
			}
		},
		methods: {
			toexchange(){
				uni.navigateTo({
					url:"./exchange"
				})
			}
		}
	}
</script>

<style>
	.title {
		display: flex;
		justify-content: flex-start;
		align-items: center;

	}

	.dd {
		width: 15rpx;
		height: 50rpx;
		background-color: #00c297;
		margin-right: 40rpx;
	}
</style>
